import request from '@/utils/request'

// 查询采购信息总列表
export function listPurchasesum(query) {
  return request({
    url: '/pur/purchasesum/list',
    method: 'get',
    params: query
  })
}

// 查询采购信息总详细
export function getPurchasesum(id) {
  return request({
    url: '/pur/purchasesum/' + id,
    method: 'get'
  })
}

// 新增采购信息总
export function addPurchasesum(data) {
  return request({
    url: '/pur/purchasesum',
    method: 'post',
    data: data
  })
}

// 修改采购信息总
export function updatePurchasesum(data) {
  return request({
    url: '/pur/purchasesum',
    method: 'put',
    data: data
  })
}

// 删除采购信息总
export function delPurchasesum(id) {
  return request({
    url: '/pur/purchasesum/' + id,
    method: 'delete'
  })
}
